<div id="excluir" style="display: none;">
	<div class="flash-success">Upload excluido com sucesso!</div>
</div>

<h1>Meus Uploads</h1>

<p>Abaixo encontra-se listados todos seus uploads realizados</p>

<?php

$this->breadcrumbs=array(
	'Meus Uploads',
);

$this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'upload-grid',
	'dataProvider'=>$model->buscarUpload(),
	'columns'=>array(
		'data',
		array(
	   			'class'=>'CLinkColumn',
	   			'header'=>'Download',
				'labelExpression'=>'Yii::app()->createAbsoluteUrl("site/download/" . $data->id_upload)',
	   			'urlExpression'=>'Yii::app()->controller->createUrl("site/download/$data->id_upload")',
			),
		array(
			'class'=>'CButtonColumn',
			'header'=>'Excluir',
			'buttons'=>array(
				'update'=>array('visible'=>'',),
				'view'=>array('visible'=>'',),
			),
			'afterDelete'=>'$("#excluir").show();',
		),
	),
)); ?>